package o;

import android.graphics.drawable.Drawable;
import android.view.View;
import androidx.core.view.ViewCompat;
import com.huawei.skinner.annotation.SkinAdapter;
import com.huawei.skinner.annotation.SkinMethod;
import com.huawei.skinner.annotation.SkinMethods;
import com.huawei.support.widget.HwBottomNavigationView;

@SkinMethods({@SkinMethod(attribute = "messageBgColor", method = "setMessageBgColor", type = HwBottomNavigationView.class)})
public class fkx {
    @SkinAdapter("iconDefaultColor")
    public static void ˏ(HwBottomNavigationView hwBottomNavigationView, int i) {
        fmt.ˏ(HwBottomNavigationView.class, hwBottomNavigationView, "mDefaultColor", Integer.valueOf(i));
        if (hwBottomNavigationView.getChildCount() > 0) {
            for (int i2 = 0; i2 < hwBottomNavigationView.getChildCount(); i2++) {
                View childAt = hwBottomNavigationView.getChildAt(i2);
                if (childAt.getClass().getName().equals("com.huawei.support.widget.HwBottomNavigationView$BottomNavigationItemView")) {
                    fmt.ॱ(childAt.getClass(), childAt, "setDefaultColor", new Class[]{Integer.TYPE}, new Object[]{Integer.valueOf(i)});
                }
            }
        }
    }

    @SkinAdapter("iconActiveColor")
    public static void ˋ(HwBottomNavigationView hwBottomNavigationView, int i) {
        fmt.ˏ(HwBottomNavigationView.class, hwBottomNavigationView, "mActiveColor", Integer.valueOf(i));
        if (hwBottomNavigationView.getChildCount() > 0) {
            for (int i2 = 0; i2 < hwBottomNavigationView.getChildCount(); i2++) {
                View childAt = hwBottomNavigationView.getChildAt(i2);
                if (childAt.getClass().getName().equals("com.huawei.support.widget.HwBottomNavigationView$BottomNavigationItemView")) {
                    fmt.ॱ(childAt.getClass(), childAt, "setActiveColor", new Class[]{Integer.TYPE}, new Object[]{Integer.valueOf(i)});
                }
            }
        }
    }

    @SkinAdapter("bottomNavDivider")
    public static void ॱ(HwBottomNavigationView hwBottomNavigationView, Drawable drawable) {
        drawable.setCallback(hwBottomNavigationView);
        gg.ˏ(drawable, ViewCompat.ʼ(hwBottomNavigationView));
        if (drawable.isStateful()) {
            drawable.setState(hwBottomNavigationView.getDrawableState());
        }
        fmt.ˏ(HwBottomNavigationView.class, hwBottomNavigationView, "mDivider", drawable);
        hwBottomNavigationView.postInvalidate();
    }
}
